﻿<UserControl x:Class="Dubs_Finder.View.OptionsPanelUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"
             d:DesignHeight="500" d:DesignWidth="200">
    
    <StackPanel Background="LightGray" Width="200" MinWidth="200" MaxWidth="200" VerticalAlignment="Center">
        <GroupBox Header="Options">
            <Grid Height="auto" VerticalAlignment="Stretch" HorizontalAlignment="Center" Margin="0,0,0,5" >
                <Grid.RowDefinitions>
                    <RowDefinition Height="20" />
                    <RowDefinition Height="15" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50" />
                    <ColumnDefinition Width="50" />
                </Grid.ColumnDefinitions>
                <TextBlock Text="Async" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Center" />
                <CheckBox Grid.Column="0" Grid.Row="1" HorizontalAlignment="Center" IsChecked="False" Checked="async_checked" Unchecked="async_unChecked"/>
                <TextBlock Text="Recursive" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Center" />
                <CheckBox Grid.Column="1" Grid.Row="1" HorizontalAlignment="Center" IsChecked="True" Checked="recursive_checked" Unchecked="recursive_unChecked"/>
                
            </Grid>
        </GroupBox>
        <DockPanel LastChildFill="False" HorizontalAlignment="Center">
            <Button Command="{Binding ClickCommand}" Content="Start" Height="20" DockPanel.Dock="Left" Margin="0,0,5,0"/>
            <Button Command="{Binding PauseCommand}" Content="Pause" Height="20" DockPanel.Dock="Left" Margin="0,0,5,0"/>
            <Button Command="{Binding AbortCommand}" Content="Abort" Height="20" DockPanel.Dock="Left"/>
        </DockPanel>
    </StackPanel>
</UserControl>
